import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from './Login.vue'
import Home from '../components/Home.vue'
Vue.use(VueRouter)

const routes = [
  { path: '/', name: 'home', component: Home },
  { path: '/success', redirect: '/home' },
  { path: '/login', name: 'Login', component: Login }

]

const router = new VueRouter({
  routes
})

export default router
